win32: remove another call to gdk_device_warp()
authorChristoph Reiter <creiter@src.gnome.org>
Tue, 26 Mar 2019 07:19:42 +0000 (08:19 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 26 Mar 2019 07:20:07 +0000 (08:20 +0100)
Inline the implementation (untested). To fix the build.

gdk/win32/gdksurface-win32.c

index f5ce2b357c058207c0b587298b529043535a7cde..fcf43bc33f287600220e40b048d24aac6e08f3a5 100644 (file)
@@ -4112,7 +4112,7 @@ setup_drag_move_resize_context (GdkSurface                   *window,
            * the titlebar is, if any.
            */
           root_y = wy + wheight / 2;
-          gdk_device_warp (device, root_x, root_y);
+          SetCursorPos (root_x - _gdk_offset_x, root_y - _gdk_offset_y);
         }
     }